package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xmy.cultivate.respons.FlowTeacherRs;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 审批流程设计
 * </p>
 *
 * @author hpiggy
 * @since 2025-01-01
 */
@TableName("audit_flow_set")
@ApiModel(value = "AuditFlowSet对象", description = "审批流程设计")
@Data
public class AuditFlowSet implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long flowId;

    @ApiModelProperty("流程序号")
    private Integer stepNum;

    @ApiModelProperty("审批类型的序号")
    private Integer checkNum;

    @ApiModelProperty("流程名称")
    private String name;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("0发起人，1审批，2抄送")
    private Integer type;

    @ApiModelProperty("审批人id,多个逗号隔开")
    private String checkIds;

    @ApiModelProperty("1个人")
    private Integer checkType;

    @ApiModelProperty("版本号")
    private Integer versionNum;

    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private List<FlowTeacherRs> teacherList;
}
